package com.myspring;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Hello {

	public Hello() {
		System.out.println("Hello init...");
	}
	
	public static void main(String[] args) {
		ClassPathXmlApplicationContext contex = new ClassPathXmlApplicationContext("applicationContext.xml");
		Hello h = contex.getBean(Hello.class);
		System.out.println(h);
	}
}
